# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-sphinxcontrib-sqltable
_pkgname=sphinxcontrib.sqltable
pkgver=2.0.0
pkgrel=6
pkgdesc="Sphinx sqltable extension"
url="https://pypi.org/project/sphinxcontrib-sqltable"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-sphinx py3-sqlalchemy"
makedepends="py3-setuptools py3-pbr"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces="py-sphinxcontrib-sqltable" # Backwards compatibility
provides="py-sphinxcontrib-sqltable=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="1f56e779857fd0578db5bf194b2867b0b1bcca4a89397a0764c005baef984ef4311ba23b56f87b1d7a17edadd53ec90a58a1cca619286547993ca5e6efb50e7b  sphinxcontrib.sqltable-2.0.0.tar.gz"
